﻿// (c) Copyright Fernando Cerqueira.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows;
using EnvDTE;
using Microsoft.VisualStudio.PlatformUI;
using Microsoft.VisualStudio.Shell;
using System.Diagnostics;
using AppRes = WindowsPhoneCommands.Resources;
using System;


// ReSharper disable CheckNamespace
namespace WindowsPhoneCommands
// ReSharper restore CheckNamespace
{
    /// <summary>
    /// Interaction logic for XapDeploy.xaml
    /// </summary>
    // ReSharper disable RedundantExtendsListEntry
    public partial class BingTranslatorInfoDialog : DialogWindow
    // ReSharper restore RedundantExtendsListEntry
    {
        public BingTranslatorInfoDialog()
        {
            InitializeComponent();
            Background = VsTheming.GetDialogBackground();
            Foreground = VsTheming.GetWindowText();
            Title = AppRes.ToolWindowTitle + " " + AppRes.BingTitDialog;
            Info.Text = string.Format(AppRes.BingDescInfoDialog, new DateTime(2012,07,19).ToShortDateString());
            UrlBingAzure.Text = AppRes.BingUrlDialog;
        }

        private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
        {
            System.Diagnostics.Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
            e.Handled = true;
        }
    }
}
